package com.edt.ichannel.api.service.impl;

import com.edt.ichannel.api.dao.CommissionMonthRuleDao;
import com.edt.ichannel.api.entiy.local.CommissionMonthRule;
import com.edt.ichannel.api.service.CommissionMonthRuleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;


/**
 * CommissionMonthRule服务接口实现类
 * @author 李爽
 * @date 2019-01-10
 */
@Service
public class CommissionMonthRuleServiceImpl implements CommissionMonthRuleService {

    @Resource
    private CommissionMonthRuleDao commissionmonthruleDao;


    @Override
    public CommissionMonthRule getCommissionMonthRule(String cityCode, String productId, Integer firstMoney, Integer channelType, Date firstDate) {
        return commissionmonthruleDao.getCommissionMonthRule(cityCode,productId,firstMoney,channelType,firstDate);
    }

    /**
     * 获取单条信息
     *
     * @param id
     * @return CommissionMonthRule
     * @author 李爽
     * @date 2019-01-10
     */
    @Override
    public CommissionMonthRule getCommissionMonthRuleById(String id) {
        return commissionmonthruleDao.getCommissionMonthRuleById(id);
    }
}